{layout name="p/base_1"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>文章分类管理<small>添加常见问题分类</small></h1>
        <ol class="breadcrumb">
          <li><a href="/index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li><a href="/faqscategory"><i class="fa fa-dashboard"></i> 常见问题分类列表</a></li>
          <li class="active"><i class="fa fa-table"></i> 常见问题分类添加</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          请设置常见问题分类信息
        </div>
      </div>
    </div>
    <!-- /.row -->
    <form class="form-horizontal" id='createMgeCate' role="form" action="/faqscategory" method="post">
      <h4>分类</h4>
      <div class="form-group">
        <label class="control-label col-sm-3">分类名称</label>
        <div class="col-sm-9">
        <input class="form-control" type="text" name="name" value="" placeholder="请填写常见问题分类名称">
        </div>
      </div>
      <div class="form-group">
        <label class="control-label col-sm-3">排序号</label>
        <div class="col-sm-9">
        <input class="form-control" type="text" name="sort" value="" placeholder="请填写排序号(次处为升序)">
        </div>
      </div>
      <div class="modal-footer">
        <a type="button" href="/faqscategory" class="btn btn-default" >返回</a>
        <button type="button" id='create' class="btn btn-primary">提交</button>
      </div>
    </form>
  </div><!-- /#page-wrapper -->

<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript">
  $(document).ready(function(){
    $("#create").click(function(){
      $("#createMgeCate").submit();
      });
    });
</script>

